from tortoise import models, fields


class RoleGroup_Menus(models.Model):
    groupid = fields.CharField(max_length=36, null=False, description="角色id")
    menuid = fields.CharField(max_length=36, null=False, description="菜单id")

    def getJson(self):
        return {
            'groupid': self.groupid,
            'menuid': self.menuid
        }
